﻿<Window x:Class="AvCapWPF.Window2"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:cap="http://schemas.sharpsoft.net/xaml"
         xmlns:diagnostics="clr-namespace:System.Diagnostics;assembly=WindowsBase" 
    Title="Window2" Height="300" Width="300">
    <Grid>
        <cap:CapDisplay x:Name="player" Width="200" CapPlayer="{Binding Path=CapPlayer, diagnostics:PresentationTraceSources.TraceLevel=High}"  HorizontalAlignment="left">
            <cap:CapDisplay.RenderTransform>
                <RotateTransform x:Name="xformRotate" CenterX="176" CenterY="145" Angle="90" />
            </cap:CapDisplay.RenderTransform>
            <cap:CapDisplay.Triggers>
                <EventTrigger RoutedEvent="Image.Loaded">
                    <EventTrigger.Actions>
                        <BeginStoryboard>
                            <Storyboard>
                                <!-- Translate from 1 to 750 pixels, repeated, back-and-forth  -->
                                <DoubleAnimation Storyboard.TargetName="xformRotate"
                                     Storyboard.TargetProperty="Angle"
                                     From="0" To="360" Duration="0:0:10"
                                     RepeatBehavior="Forever" />

                            </Storyboard>
                        </BeginStoryboard>
                    </EventTrigger.Actions>
                </EventTrigger>
            </cap:CapDisplay.Triggers>



        </cap:CapDisplay>
    </Grid>
</Window>
